package com.yuntai.pms.model.enums;


import java.util.LinkedHashMap;
import java.util.Map;

public enum ControlBehaviorEnum {

    REFUSE(0, "直接拒绝"),
    WARMUP(1, "预热冷启动"),
    UNIFORMQUEUE(2,"匀速排队"),
    WARMUPANDQUEUE(3,"预热和排队组合");


    private Integer code;
    private String name;
    private final  static Map<Integer,String> controlBehaviorMap = new LinkedHashMap<Integer,String>();

    public static Map<Integer, String> getControlBehaviorMap() { return controlBehaviorMap;
    }
    static   {
        controlBehaviorMap.put(ControlBehaviorEnum.REFUSE.getCode(), ControlBehaviorEnum.REFUSE.getName());
        controlBehaviorMap.put(ControlBehaviorEnum.WARMUP.getCode(), ControlBehaviorEnum.WARMUP.getName());
        controlBehaviorMap.put(ControlBehaviorEnum.UNIFORMQUEUE.getCode(), ControlBehaviorEnum.UNIFORMQUEUE.getName());
        controlBehaviorMap.put(ControlBehaviorEnum.WARMUPANDQUEUE.getCode(), ControlBehaviorEnum.WARMUPANDQUEUE.getName());
    }
    private ControlBehaviorEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
